cdefs.h: Use __deprecated__ instead of deprecated
authorSoren Brinkmann <[email protected]>
Wed, 20 Jan 2016 23:32:23 +0000 (15:32 -0800)
committerSoren Brinkmann <[email protected]>
Wed, 20 Jan 2016 23:45:39 +0000 (15:45 -0800)
Use the form with underscores to define the '__deprecated' macro to avoid
collisions with potentially defined macros, as suggested in gcc docs
(https://gcc.gnu.org/onlinedocs/gcc/Attribute-Syntax.html#Attribute-Syntax).

Signed-off-by: Soren Brinkmann <[email protected]>
include/stdlib/sys/cdefs.h

index e6960f68a0ee0a6f78f4d8c6352ddc473ec80684..70c09fdbbee28e00d78116c9320e64a9e05d7da1 100644 (file)
 
 #if __GNUC_PREREQ__(3, 1)
 #define        __noinline      __attribute__ ((__noinline__))
-#define        __deprecated    __attribute__ ((deprecated))
+#define        __deprecated    __attribute__ ((__deprecated__))
 #else
 #define        __noinline
 #define        __deprecated